//轮播图数据接口
const mongoose = require('mongoose')
var carouselSchema = new mongoose.Schema({
    imgUrl: {
        type: Array,
        required: true,
        default: ['/images/lunbo1.png', '/images/lunbo2.png', '/images/lunbo3.png'],
        trim: true,
    }
})

const carousel = mongoose.model("carousels", carouselSchema);
module.exports = carousel